/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */


package storage.util;

import java.util.Calendar;
/**
 * 
 * @author bloodyparadise
 */
public class TimeUtil {
	private String test;

	public String getTest() {
		return test;
	}

	/**
	 * 
	 * @param test parameter
	 * @return
	 */
	public void setTest(String test) {
		this.test = test;
	}
	/**
	 * 
	 * @param test parameter
	 * @return
	 */
	public TimeUtil(String test) {
		this.test = test;
	}
	
	/**
	 * 
	 * @return
	 */
	public static String getTime() {
		StringBuilder sb = new StringBuilder("");
		Calendar calendar = Calendar.getInstance();
		sb.append(calendar.get(Calendar.YEAR));
		sb.append("-");
		sb.append(1 + calendar.get(Calendar.MONTH));
		sb.append("-");
		sb.append(calendar.get(Calendar.DATE));
		sb.append(" ");
		sb.append(calendar.get(Calendar.HOUR_OF_DAY));
		sb.append(":");
		sb.append(calendar.get(Calendar.MINUTE));
		sb.append(":");
		sb.append(calendar.get(Calendar.SECOND));
		return sb.toString();
	}
}
